From: Paul Donald Date: Wed, 17 Apr 2024 00:49:49 +0000 (+0200) Subject: luci-app-openvpn: change Value to DynamicList for ciphers X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22/%22https:/collectd.org/%22?a=commitdiff_plain;h=f6301561e709433b8602264fa00495c4aeb70ad3;p=project%2Fluci.git luci-app-openvpn: change Value to DynamicList for ciphers Signed-off-by: Paul Donald --- diff --git a/applications/luci-app-openvpn/luasrc/model/cbi/openvpn-advanced.lua b/applications/luci-app-openvpn/luasrc/model/cbi/openvpn-advanced.lua index a7eefdf5fe..656aeedf9a 100644 --- a/applications/luci-app-openvpn/luasrc/model/cbi/openvpn-advanced.lua +++ b/applications/luci-app-openvpn/luasrc/model/cbi/openvpn-advanced.lua @@ -801,13 +801,21 @@ local knownParams = { "ncp_disable", 0, translate("This completely disables cipher negotiation") }, - { Value, + { DynamicList, "ncp_ciphers", - "AES-256-GCM:AES-128-GCM", + { + "AES-256-GCM", + "AES-128-GCM" + }, translate("Restrict the allowed ciphers to be negotiated") }, - { Value, + { DynamicList, "data_ciphers", - "CHACHA20-POLY1305:AES-256-GCM:AES-128-GCM:AES-256-CBC", + { + "CHACHA20-POLY1305", + "AES-256-GCM", + "AES-128-GCM", + "AES-256-CBC" + }, translate("Restrict the allowed ciphers to be negotiated") }, } } }